<?php 
require_once 'include/common.inc.php';
require_once 'head.php';
require_once 'include/NewsFun.php';
require_once 'include/pager.class.php';
require_once 'include/HandPost.php';


$nsql='select * from tb_message where lang=\'cn\' and readok=1 ';
/*
$where='';
if($isp!=1)$where.=' class2='.$pid;
else $where.='  class1='.$pid;
if(!empty($kw)) $where.=' and title like \'%'.$kw.'%\'';
$where.=' order by id desc';
*/
$nsql.=' order by id desc';
$row=$db->query($nsql);

$total=$db->counter("tb_message","lang='cn' and readok=1","*");
/**/
$total=30;
$pageSize=20;
$cid=1;
$page=new Pager($total, $pageSize, $cid);


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $webName;?>--<?php echo $url;?></title>
<meta name="keywords" content="<?php echo $keyword?>--<?php echo $url;?>" />
<meta name="description" content="<?php echo $description;?>--<?php echo $url;?>" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/webskys.js"></script>
<script type="text/javascript" src="js/ie6png.js"></script>
<script type="text/javascript" src="js/gun.js"></script>
<script type="text/javascript" src="js/jquery.domWindow.js"></script>
<style type="text/css">
#messagelist table {
    margin: 0 auto;
}
</style> 
<script type="text/javascript">
	function subInfo(){
		if($('#name').val()==''){alert('姓名不能为空!');return;}
	
		if($('#content').val()==''){alert('留言不能为空!');return;}
		$.get("include/HandPost.php",
				{name:$('#name').val(),phone:$('#phone').val(),mail:$('#mail').val(),cont:$('#cont').val(),content:$('#content').val(),time:new Date().getTime() }
				,						
				 function(data){
			  alert("Data Loaded: " + data);
			  hiddenDiv();
			});
	}
</script>
</head>
<body>
<div class="top">
<div class="topright">
<ul>
<li class="li01"><a href='/'>首页</a></li>
<li class="li02"><a href='javascript:void();' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $url;?>');" rel="nofollow">设为首页</a></li>
<li class="li03"><a onclick="window.external.addFavorite(location.href,document.title)" href="javascript:void();" rel="nofollow">加入收藏</a></li>
</ul>
</div>
<div class="logo">
<a href="/" title="-前端设计webskys.com"><img src="<?php echo $logo;?>" width="502" height="71"  alt="<?php echo $webName;?>/></a></div>
<div class="righttel">
<img src="images/tel.png" width="200" height="30"  alt="前端设计联系电话"/></div>
<div class="webnav">
<ul>
<li class="licur"><a href="/" title="网站首页">网站首页</a></li>
 <?php 
    echo  $nav->getNavhtml($res);
?>
</ul>
</div>
</div>
<div class="banner">
<div id="banlbar"></div>
<div id="banrbar"></div>
<div id="banh">
<ul>
<?php 
	echo $nav->getFlashHtml($frow);
?>
<!-- 
<li><img src="images/banner01.jpg" /></li>
<li><img src="images/banner02.jpg" /></li>
<li><img src="images/banner03.jpg" /></li>
<li><img src="images/banner04.jpg" /></li> -->
</ul>
</div>
</div>


<div class="index_con">
<div class="page_left">
<h2 class="left_title">产品展示</h2>
<div class="leftbg borl_r">
<ul class="classul">
<li><a href="#">大型办公楼解决方案</a></li>
<li><a href="#">学校案例设施解决方案</a></li>
<li><a href="#">医院政府部门解决方案</a></li>
<li><a href="#">银行、商场解决方案</a></li>
</ul>
</div>
<div class="left_bot"></div>
<div class="magtop10 search">
<p class="searchp01">站内搜索</p>
<form action="#" method="post">
<input name="" type="text" class="searchinp"/>
<p class="searchp02"><input type="submit" value="　　" class="searchbon" /></p>
</form>

</div>
<div class="magtop10"><a href="?" title="留言反馈"><img src="images/left01.gif"  alt="留言反馈"/></a></div>
<div class="magtop10"><a href="#" title=""><img src="images/left02.gif"  alt="在线加盟"/></a></div>
</div>
<div class="page_right">
<div class="pagetop"><span class="web_navi">当前位置：<a href="#">首页</a> &gt;&gt; 留言反馈</span><h2><a href="#">留言反馈</a></h2>
</div>
<div class="borl_r singpage">
<p class="red"><A class=defaultDOMWindow href="#inlineContent" jQuery1298700141187="2"><img src="images/luiyan.gif" alt="发表留言" class="luiyanimg"/></A>　　欢迎您访问本站，如果有什么建议或意见及疑难问题，请从这里提交您的信息，我们将在第一时间给您回复，不得发表攻击性言论， ！</p>
<SCRIPT type=text/javascript> 
function hiddenDiv(){
	$('#inlineContent').hide();
}
$('.defaultDOMWindow').openDOMWindow({ eventType:'click', loader:1, loaderImagePath:'animationProcessing.gif', loaderHeight:16, loaderWidth:17 }); </SCRIPT>
<div id="inlineContent" style=" display:none;">
<div class="tomtoluyan">
<form action="?action=add" method="post" name="liuyanform">
<div class="touxiang">
<img src="images/tou/01.gif" name="touxiang" id="touxiang">
<script language="javascript" type="text/javascript">function showimage(){document.images.touxiang.src="images/tou/"+document.liuyanform.tou.options[document.liuyanform.tou.selectedIndex].value+".gif";}</script>
<!-- <select name="tou" onChange="showimage()">
<option selected value="images/tou/01.gif">选择头像</option>
<option value="01">头像1</option>
<option value="02">头像2</option>
<option value="03">头像3</option>
<option value="04">头像4</option>
<option value="05">头像5</option>
<option value="06">头像6</option>
<option value="07">头像7</option>
<option value="08">头像8</option>
<option value="09">头像9</option>
<option value="10">头像10</option>
<option value="11">头像11</option>
<option value="12">头像12</option>
</select>  -->
</div>
<h2>发表留言反馈</h2>
<P>您的姓名：<input id="name" name="name" type="text" class="luyqninput" size="30" /><span>*</span></P>
<P>您的电话：<input name="phone" id="phone" type="text" class="luyqninput" size="30" /></P>
<P>qq,msn方式：<input name="cont" id="cont" type="text" class="luyqninput" size="30" /></P>

<P>您的邮箱：<input name="mail" type="text" id="mail" class="luyqninput" size="30" /><span>*</span></P>
<p>留言反馈内容：<span>*</span></p>
<p><textarea name="content" cols="" rows="" id="content" class="luyqninaarea"></textarea></p>
<p><input name="" type="button" value="提交信息" onclick="subInfo()" class="luiyabot"/>
<p><input name="" type="button" value="关闭信息" onclick="hiddenDiv()" class="luiyabot"/>
</p>
</form>
</div>
</div>
<ul class="liuyanul">
<?php 
	$lyinfo='';
	while($r=$db->fetch_array($row)){
		$lyinfo.='<li><div class="iteleft"><!--  <img src="images/tou/01.gif" width="80" height="80" />--><p>'.$r['name'].'</p></div>';
		$lyinfo.='<div class="iteright">
<p class="lytime">发表时间：'.$r['addtime'].'</p>
<p class="lymr">'.$r['info'].'</p>
<p class="lite04"></p>
<p class="lymr"><span class="red">管理员回复：</span>'.$r['useinfo'].'</p>
<p class="lite05"></p>
</div></li>';
	}
	echo $lyinfo;


?>

</ul>
<div class="epages">
<?php 
	 
     echo $page->link("ly.php?cid=".$cid."&ps=".$pageSize,'');
	?>
</div>
</div>






<?php
require_once 'secfoot.php';
?>